import $http from './index'
interface loginData {
    userName: string,
    password: string
  }
export const login =(data:loginData)=>$http({url:"/login",method:"post",data})
export const getList =(data:object)=>$http({url:"/getList",method:"get",data})
export const getUserList =()=>$http({url:"/getUserList",method:"get"})
export const getRoleList =()=>$http({url:"/getRoleList",method:"get"})